package com.start.cloud.robotcore;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.client.ConfigServicePropertySourceLocator;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class RobotCoreApplication {

    @Autowired @Qualifier("ownConfig")
    private ConfigServicePropertySourceLocator csl;

    public static void main(String[] args) {
        ConfigurableApplicationContext context=SpringApplication.run(RobotCoreApplication.class, args);
        String str1=context.getEnvironment().getProperty("eureka.instance.statusPageUrlPath");

        System.out.println(str1);
    }
}
